export default {
  sideBarLayout: 'LEFT',
  showDataInfoBar: true,
  loadDefault: true,
  deviewCodeName: 'grid_exp_view',
  deviewId: 'be23206dc9d51ac3d62b5a8937585066',
  accUserMode: 3,
  capLanguageRes: {
    lanResTag: 'DE.LNAME.REGION',
  },
  caption: '表格导航视图',
  codeName: 'region_grid_exp_view',
  appDataEntityId: 'web.region',
  appViewEngines: [
    {
      engineCat: 'VIEW',
      engineType: 'GridExpView',
      id: 'engine',
    },
  ],
  appViewLogics: [
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        actionAfterWizard: 'DEFAULT',
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_NEWDATA',
        id: '新建数据',
      },
      builtinLogic: true,
      id: 'newdata',
    },
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        editMode: true,
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_OPENDATA',
        id: '打开数据',
      },
      builtinLogic: true,
      id: 'opendata',
    },
  ],
  appViewMsgGroupId: 'grid_exp_view_group',
  controls: [
    {
      sysImage: {
        cssClass: 'fa fa-cube',
        glyph: 'xf1b2@FontAwesome',
      },
      title: '区划',
      xdataControlName: 'gridexpbar_grid',
      enableCounter: true,
      enableSearch: true,
      showTitleBar: true,
      autoLoad: true,
      showBusyIndicator: true,
      appViewRefs: [
        {
          realOpenMode: 'POPUPMODAL',
          realTitle: '区划信息',
          refAppViewId: 'web.region_info_view',
          name: 'EXPITEM:DEFAULT',
          id: 'expitem:default',
        },
      ],
      controls: [
        {
          aggMode: 'NONE',
          columnEnableFilter: 2,
          columnEnableLink: 2,
          groupMode: 'NONE',
          groupStyle: 'DEFAULT',
          degridColumns: [
            {
              clconvertMode: 'NONE',
              dataItemName: 'code',
              excelCaption: '编码',
              filterEditor: {
                editorType: 'TEXTBOX',
                placeHolder: '请输入编码',
                valueType: 'SIMPLE',
                editable: true,
                id: 'n_code_like',
              },
              appDEFieldId: 'code',
              valueType: 'SIMPLE',
              aggMode: 'NONE',
              align: 'LEFT',
              caption: '编码',
              codeName: 'code',
              columnType: 'DEFGRIDCOLUMN',
              noPrivDisplayMode: 1,
              width: 150,
              widthUnit: 'PX',
              enableSort: true,
              id: 'code',
            },
            {
              clconvertMode: 'NONE',
              dataItemName: 'name',
              excelCaption: '名称',
              filterEditor: {
                editorType: 'TEXTBOX',
                placeHolder: '请输入名称',
                valueType: 'SIMPLE',
                editable: true,
                id: 'n_name_like',
              },
              appDEFieldId: 'name',
              valueType: 'SIMPLE',
              enableRowEdit: true,
              aggMode: 'NONE',
              align: 'LEFT',
              capLanguageRes: {
                lanResTag: 'DEF.LNAME.REGION.NAME',
              },
              caption: '名称',
              codeName: 'name',
              columnType: 'DEFGRIDCOLUMN',
              noPrivDisplayMode: 1,
              width: 200,
              widthUnit: 'PX',
              enableSort: true,
              id: 'name',
            },
            {
              clconvertMode: 'NONE',
              dataItemName: 'parent_name',
              excelCaption: '上级区划',
              linkAppViewId: 'web.region_redirect_view',
              linkValueItem: 'parent_id',
              appDEFieldId: 'parent_name',
              valueType: 'SIMPLE',
              enableLinkView: true,
              enableRowEdit: true,
              aggMode: 'NONE',
              align: 'LEFT',
              caption: '上级区划',
              codeName: 'parent_name',
              columnType: 'DEFGRIDCOLUMN',
              noPrivDisplayMode: 1,
              width: 200,
              widthUnit: 'PX',
              enableSort: true,
              id: 'parent_name',
            },
            {
              clconvertMode: 'NONE',
              dataItemName: 'level',
              excelCaption: '级别',
              appDEFieldId: 'level',
              valueType: 'SIMPLE',
              enableRowEdit: true,
              aggMode: 'NONE',
              align: 'LEFT',
              caption: '级别',
              codeName: 'level',
              columnType: 'DEFGRIDCOLUMN',
              noPrivDisplayMode: 1,
              width: 100,
              widthUnit: 'PX',
              enableSort: true,
              id: 'level',
            },
            {
              clconvertMode: 'FRONT',
              dataItemName: 'status',
              excelCaption: '状态',
              appCodeListId: 'web.mock__cl_status',
              appDEFieldId: 'status',
              valueType: 'SIMPLE',
              enableRowEdit: true,
              aggMode: 'NONE',
              align: 'LEFT',
              caption: '状态',
              codeName: 'status',
              columnType: 'DEFGRIDCOLUMN',
              noPrivDisplayMode: 1,
              width: 150,
              widthUnit: 'PX',
              enableSort: true,
              id: 'status',
            },
            {
              clconvertMode: 'NONE',
              dataItemName: 'path',
              excelCaption: '全路径',
              appDEFieldId: 'path',
              valueType: 'SIMPLE',
              enableRowEdit: true,
              aggMode: 'NONE',
              align: 'LEFT',
              caption: '全路径',
              codeName: 'path',
              columnType: 'DEFGRIDCOLUMN',
              noPrivDisplayMode: 1,
              width: 300,
              widthUnit: 'PX',
              enableSort: true,
              id: 'path',
            },
            {
              clconvertMode: 'NONE',
              dataItemName: 'sort',
              excelCaption: '排序',
              appDEFieldId: 'sort',
              valueType: 'SIMPLE',
              enableRowEdit: true,
              aggMode: 'NONE',
              align: 'LEFT',
              caption: '排序',
              codeName: 'sort',
              columnType: 'DEFGRIDCOLUMN',
              noPrivDisplayMode: 1,
              width: 100,
              widthUnit: 'PX',
              enableSort: true,
              id: 'sort',
            },
          ],
          degridDataItems: [
            {
              appDEFieldId: 'code',
              valueType: 'SIMPLE',
              dataType: 25,
              id: 'code',
            },
            {
              appDEFieldId: 'name',
              valueType: 'SIMPLE',
              dataType: 25,
              id: 'name',
            },
            {
              appDEFieldId: 'parent_name',
              valueType: 'SIMPLE',
              dataType: 25,
              id: 'parent_name',
            },
            {
              appDEFieldId: 'level',
              valueType: 'SIMPLE',
              dataType: 9,
              id: 'level',
            },
            {
              appDEFieldId: 'status',
              valueType: 'SIMPLE',
              dataType: 9,
              id: 'status',
            },
            {
              appDEFieldId: 'path',
              valueType: 'SIMPLE',
              dataType: 25,
              id: 'path',
            },
            {
              appDEFieldId: 'sort',
              valueType: 'SIMPLE',
              dataType: 9,
              id: 'sort',
            },
            {
              appDEFieldId: 'id',
              valueType: 'SIMPLE',
              dataType: 25,
              id: 'srfkey',
            },
            {
              appDEFieldId: 'id',
              valueType: 'SIMPLE',
              dataType: 25,
              id: 'srfdataaccaction',
            },
            {
              appDEFieldId: 'parent_id',
              valueType: 'SIMPLE',
              dataType: 25,
              id: 'parent_id',
            },
            {
              appDEFieldId: 'name',
              valueType: 'SIMPLE',
              dataType: 25,
              id: 'srfmajortext',
            },
          ],
          degridEditItems: [
            {
              caption: '名称',
              codeName: 'name',
              enableCond: 3,
              appDEFieldId: 'name',
              editor: {
                maxLength: 200,
                editorType: 'TEXTBOX',
                valueType: 'SIMPLE',
                editable: true,
                id: 'name',
              },
              allowEmpty: true,
              id: 'name',
            },
            {
              caption: '上级区划',
              codeName: 'parent_name',
              enableCond: 3,
              appDEFieldId: 'parent_name',
              editor: {
                enablePickupView: true,
                singleSelect: true,
                appDEACModeId: 'default',
                appDEDataSetId: 'fetch_default',
                appDataEntityId: 'web.region',
                enableAC: true,
                forceSelection: true,
                showTrigger: true,
                valueItemName: 'parent_id',
                editorParams: {
                  AC: 'TRUE',
                  PICKUPVIEW: 'TRUE',
                },
                editorType: 'PICKER',
                editorItems: [{}],
                valueType: 'SIMPLE',
                editable: true,
                id: 'parent_name',
              },
              allowEmpty: true,
              id: 'parent_name',
            },
            {
              caption: '级别',
              codeName: 'level',
              enableCond: 3,
              appDEFieldId: 'level',
              editor: {
                editorType: 'TEXTBOX',
                valueType: 'SIMPLE',
                editable: true,
                id: 'level',
              },
              allowEmpty: true,
              id: 'level',
            },
            {
              caption: '状态',
              codeName: 'status',
              enableCond: 3,
              appDEFieldId: 'status',
              editor: {
                singleSelect: true,
                appCodeListId: 'web.mock__cl_status',
                editorType: 'DROPDOWNLIST',
                valueType: 'SIMPLE',
                editable: true,
                id: 'status',
              },
              allowEmpty: true,
              needCodeListConfig: true,
              id: 'status',
            },
            {
              caption: '全路径',
              codeName: 'path',
              enableCond: 3,
              appDEFieldId: 'path',
              editor: {
                maxLength: 500,
                editorType: 'TEXTBOX',
                valueType: 'SIMPLE',
                editable: true,
                id: 'path',
              },
              allowEmpty: true,
              id: 'path',
            },
            {
              caption: '排序',
              codeName: 'sort',
              enableCond: 3,
              appDEFieldId: 'sort',
              editor: {
                editorType: 'TEXTBOX',
                valueType: 'SIMPLE',
                editable: true,
                id: 'sort',
              },
              allowEmpty: true,
              id: 'sort',
            },
            {
              caption: '标识',
              codeName: 'srfkey',
              enableCond: 3,
              appDEFieldId: 'id',
              editor: {
                editorType: 'HIDDEN',
                valueType: 'SIMPLE',
                editable: true,
                id: 'srfkey',
              },
              allowEmpty: true,
              id: 'srfkey',
            },
            {
              enableCond: 3,
              appDEFieldId: 'parent_id',
              editor: {
                editorType: 'HIDDEN',
                valueType: 'SIMPLE',
                editable: true,
              },
              allowEmpty: true,
              id: 'parent_id',
            },
          ],
          pagingMode: 1,
          pagingSize: 20,
          sortMode: 'REMOTE',
          enableCustomized: true,
          enablePagingBar: true,
          navAppViewId: 'web.region_info_view',
          navViewPos: 'NONE',
          fetchControlAction: {
            appDEMethodId: 'fetch_default',
            appDataEntityId: 'web.region',
            id: 'fetch',
          },
          removeControlAction: {
            appDEMethodId: 'remove',
            appDataEntityId: 'web.region',
            id: 'remove',
          },
          autoLoad: true,
          showBusyIndicator: true,
          codeName: 'grid_exp_view_grid',
          controlType: 'GRID',
          logicName: '表格导航视图_表格',
          appDataEntityId: 'web.region',
          controlLogics: [
            {
              eventNames: 'SELECTIONCHANGE',
              logicTag: 'gridexpbar_grid',
              logicType: 'CUSTOM',
              triggerType: 'CTRLEVENT',
              id: 'gridexpbar_selectionchange',
            },
            {
              eventNames: 'LOAD',
              logicTag: 'gridexpbar_grid',
              logicType: 'CUSTOM',
              triggerType: 'CTRLEVENT',
              id: 'gridexpbar_load',
            },
          ],
          controlParam: {
            id: 'gridexpbar_grid',
          },
          modelId: '62bbb4a3a43294bc652244a898556bd3',
          modelType: 'PSDEGRID',
          name: 'gridexpbar_grid',
          id: 'web.region.grid_exp_view_grid',
        },
        {
          detoolbarItems: [
            {
              actionLevel: 100,
              noPrivDisplayMode: 2,
              uiactionId: 'gridview_refreshaction',
              valid: true,
              caption: '刷新',
              itemType: 'DEUIACTION',
              sysImage: {
                cssClass: 'fa fa-refresh',
                glyph: 'xf021@FontAwesome',
              },
              tooltip: '刷新',
              showCaption: true,
              showIcon: true,
              id: 'deuiaction1',
            },
          ],
          codeName: 'grid_exp_view_gridexpbar_toolbar',
          controlType: 'TOOLBAR',
          logicName: '表格导航栏工具栏',
          appDataEntityId: 'web.region',
          controlParam: {
            id: 'gridexpbar_toolbar',
          },
          modelId: '9de45d3ce936ab235f997062e3344b88',
          modelType: 'PSDETOOLBAR',
          name: 'gridexpbar_toolbar',
          id: 'grid_exp_view_gridexpbar_toolbar',
        },
      ],
      codeName: 'grid_exp_view_gridexpbar',
      controlType: 'GRIDEXPBAR',
      appDataEntityId: 'web.region',
      controlParam: {
        id: 'gridexpbar',
      },
      width: 750,
      modelId: '5b6c8be50bc1dbeb11df601ae58637b4_gridexpbar',
      modelType: 'PSEXPBAR',
      name: 'gridexpbar',
      id: 'grid_exp_view_gridexpbar',
    },
    {
      groupMode: 'SINGLE',
      quickSearchMode: 1,
      enableQuickSearch: true,
      controlType: 'SEARCHBAR',
      appDataEntityId: 'web.region',
      controlParam: {
        id: 'searchbar',
      },
      id: 'searchbar',
    },
    {
      capLanguageRes: {
        lanResTag: 'DE.LNAME.REGION',
      },
      caption: '表格导航视图',
      codeName: 'grid_exp_view_captionbar',
      controlType: 'CAPTIONBAR',
      appDataEntityId: 'web.region',
      controlParam: {},
      name: 'captionbar',
      id: 'grid_exp_view_captionbar',
    },
  ],
  viewLayoutPanel: {
    layoutBodyOnly: true,
    useDefaultLayout: true,
    layoutPanel: true,
    codeName: 'layoutpanel',
    controlStyle: 'APPDEGRIDEXPVIEW',
    controlType: 'VIEWLAYOUTPANEL',
    appDataEntityId: 'web.region',
    controlParam: {},
    id: 'layoutpanel',
  },
  title: '表格导航视图',
  viewStyle: 'DEFAULT',
  viewType: 'DEGRIDEXPVIEW',
  enableDP: true,
  showCaptionBar: true,
  modelId: '5b6c8be50bc1dbeb11df601ae58637b4',
  modelType: 'PSAPPDEVIEW',
  name: 'REGIONgrid_exp_view',
  id: 'web.region_grid_exp_view',
};
